package com.zhenbao.service.goods.service.impl;

import com.zhenbao.common.pojo.Page;
import com.zhenbao.goods.pojo.Sku;
import com.zhenbao.service.goods.dao.SkuMapper;
import com.zhenbao.service.goods.service.SkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SkuServieImpl implements SkuService {
    @Autowired
    private SkuMapper skuMapper;

    @Override
    public List<Sku> findAll() {
        return null;
    }

    @Override
    public Sku findById(String id) {
        return null;
    }

    /**
     * 增加
     * @param sku
     */
    @Override
    public void add(Sku sku) {
        skuMapper.insert(sku);
    }

    @Override
    public void update(Sku sku) {

    }

    @Override
    public void delete(String id) {

    }

    @Override
    public List<Sku> findList(Map<String, Object> searchMap) {
        return null;
    }

    @Override
    public Page<Sku> findPage(int page, int size) {
        return null;
    }

    @Override
    public Page<Sku> findPage(Map<String, Object> searchMap, int page, int size) {
        return null;
    }
}
